import Vue from 'vue'
import Router from 'vue-router'
//登录，主页
import Login from '@/components/login/Login'
import Home from '@/components/home/Home'
//轮播图
import Chart from '@/components/chart/Chart'
import AddChart from '@/components/chart/AddChart'
import UpdateChart from '@/components/chart/UpdateChart'
//课程
import Subject from '@/components/course/Subject'
import SubjectDetails from '@/components/course/SubjectDetails'
import AddSubject from '@/components/course/AddSubject'
import UpdateSubject from '@/components/course/UpdateSubject'
import UpdateCourse from '@/components/course/UpdateCourse'
import Question from '@/components/course/Question'
//系统
import Account from '@/components/sys/Account'
import Menu from '@/components/sys/Menu'
import Role from '@/components/sys/Role'
import File from '@/components/file/File'
import Bus from '@/components/file/Bus'
//导航
import HowUse from '@/components/navgation/howUse/HowUse'
import Icu from '@/components/navgation/icu/Icu'
import Interview from '@/components/navgation/interview/Interview'
import Joke from '@/components/navgation/joke/Joke'
import Love from '@/components/navgation/love/Love'
import Offer from '@/components/navgation/offer/Offer'
import Suggestion from '@/components/navgation/suggestion/Suggestion'
import Teacher from '@/components/navgation/teacher/Teacher'
import Vip from '@/components/navgation/vip/Vip'

Vue.use(Router)

export default new Router({
  //TODO 正式服务将 mode: "history"的注释取消掉
  mode: "history",
  routes: [
    {path: '/login', name: 'Login', component: Login},
    {path: '/home', name: 'Home', component: Home},

    {path: '/chart', name: 'Chart', component: Chart},
    {path: '/addChart', name: 'AddChart', component: AddChart},
    {path: '/updateChart', name: 'UpdateChart', component: UpdateChart},

    {path: '/subject', name: 'Subject', component: Subject},
    {path: '/subjectDetails', name: 'SubjectDetails', component: SubjectDetails},
    {path: '/addSubject', name: 'AddSubject', component: AddSubject},
    {path: '/updateSubject', name: 'UpdateSubject', component: UpdateSubject},
    {path: '/updateCourse', name: 'UpdateCourse', component: UpdateCourse},
    {path: '/question', name: 'Question', component: Question},

    {path: '/account', name: 'Account', component: Account},
    {path: '/menu', name: 'Menu', component: Menu},
    {path: '/role', name: 'Role', component: Role},
    {path: '/file', name: 'File', component: File},
    {path: '/bus', name: 'Bus', component: Bus},

    {path: '/howUse', name: 'HowUse', component: HowUse},
    {path: '/icu', name: 'Icu', component: Icu},
    {path: '/interview', name: 'Interview', component: Interview},
    {path: '/joke', name: 'Joke', component: Joke},
    {path: '/love', name: 'Love', component: Love},
    {path: '/offer', name: 'Offer', component: Offer},
    {path: '/suggestion', name: 'Suggestion', component: Suggestion},
    {path: '/teacher', name: 'Teacher', component: Teacher},
    {path: '/vip', name: 'Vip', component: Vip},
  ]
})
